package Print;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

public class PrintDemo1 {
    public static void main(String [] args) throws FileNotFoundException, UnsupportedEncodingException {
        PrintStream ps = new PrintStream(new FileOutputStream("print.txt"),true,"UTF-8");
        ps.println(94);
        ps.print(88);
        ps.printf("%s 爱上了 %s","小红","小明");
        ps.close();
    }
}
